<?php
/**
 * Created by PhpStorm.
 * User: idcu
 * Date: 2016/3/2
 * Time: 22:30
 */
namespace Admin\Controller;

class DictController extends AdminController
{    
    protected $searchRule = array(
        'type' => array('/^\w+$/','eq'),
        'keyword' => array('/^[\x{4e00}-\x{9fa5}A-Za-z0-9_]+$/u','like','%','%'),
        'text' => array('/^[\x{4e00}-\x{9fa5}A-Za-z0-9_]+$/u','like','%','%'),
    );

    public function getDict(){
        $req = I('param.');
        $type = $req['type'];
        $this->ajaxReturn(D($this->modelName)->getDict($type));
    }
}